/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.phone.dao;

import com.jeesite.common.dao.CrudDao;
import com.jeesite.common.mybatis.annotation.MyBatisDao;
import com.jeesite.modules.phone.entity.PhoneCommodity;
import com.jeesite.modules.phone.entity.SalesRecords;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 销售记录DAO接口
 * @author lzw
 * @version 2019-04-03
 */
@MyBatisDao
public interface SalesRecordsDao extends CrudDao<SalesRecords> {

    List<SalesRecords> obtainDayInfo();

    List<SalesRecords> obtainMonthInfo(String yrars);

    List<SalesRecords> obtainQuarterInfo(String yrars);

    List<SalesRecords> obtainYearInfo(String yrars);

    List<SalesRecords> obtainManufacturerDayInfo();

    List<SalesRecords> obtainCommodityDayInfo();

    List<SalesRecords> obtainManufacturerMonthInfo(@Param("yrars") String yrars,@Param("months") String months);

    List<SalesRecords> obtainCommodityMonthInfo(@Param("yrars") String yrars, @Param("months") String months, @Param("productManufacturerId") String productManufacturerId);

    List<SalesRecords> obtainManufacturerQuarterInfo(@Param("yrars") String yrars,@Param("quarters") String quarters);

    List<SalesRecords> obtainCommodityQuarterInfo(@Param("yrars") String yrars, @Param("quarters") String quarters, @Param("productManufacturerId") String productManufacturerId);

    List<SalesRecords> obtainManufacturerYearInfo(String yrars);

    List<SalesRecords> obtainCommodityYearInfo(@Param("yrars") String yrars, @Param("productManufacturerId") String productManufacturerId);
}